<script setup>
defineProps({
    type: {
        type: String,
        default: 'submit',
    },
    disabled: {
        type: Boolean,
        default: false,
    },
    className: {
        type: String,
        default: '',
    },
});
</script>

<template>
    <button
        :type="type"
        :class="[
            'inline-flex items-center px-4 py-2 bg-orange-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-orange-500 focus:bg-orange-500 active:bg-orange-700 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 transition ease-in-out duration-150',
            disabled && 'opacity-25',
            className,
        ]"
        :disabled="disabled"
    >
        <slot />
    </button>
</template>
